/**
 * Copyright © 2015-2020 <a href="http://www.jeeplus.org/">JeePlus</a> All rights reserved.
 */
package com.jeeplus.modules.sys.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.jeeplus.common.utils.excel.annotation.ExcelField;
import com.jeeplus.core.persistence.DataEntity;
import lombok.Data;

import javax.validation.constraints.NotNull;
import java.util.Date;

/**
 * 学生副表_德育加分Entity
 * @author 于昭龙
 * @version 2022-02-11
 */
@Data
public class StudentMoreduViceAdd extends DataEntity<StudentMoreduViceAdd> {
	
	private static final long serialVersionUID = 1L;
	private StudentMoreduMain add;		// 关联id 父类
	private String addId;			//决定加到谁身上
	@ExcelField(title="加分原因", align=2, sort=8)
	private String addReason;		// 加分原因
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	@NotNull(message="加分时间不能为空")
	@ExcelField(title="加分时间", align=2, sort=9)
	private Date addTime;		// 加分时间
	@ExcelField(title="加分数", align=2, sort=10)
	private String addPoint;		// 加分数
	@ExcelField(title="审核状态", align=2, sort=11)
	private String addState;		// 审核状态
	private String addEnclosure;
	private String time; //查询时间
	private String approver; // 审批人
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	@ExcelField(title="加分时间", align=2, sort=12)
	private Date auditTime; // 审核时间

	public StudentMoreduViceAdd (String addReason, Date addTime, String addPoint) {
		this.addReason = addReason;
		this.addTime = addTime;
		this.addPoint = addPoint;
	}

	public StudentMoreduViceAdd() {
		super();
	}

	public StudentMoreduViceAdd(String id){
		super(id);
	}

	public StudentMoreduViceAdd(StudentMoreduMain add){
		this.add = add;
	}

}